import request from '@/utils/request'

// 查询创客列表
export function list(query) {
  return request({
    url: '/maker/list',
    method: 'get',
    params: query
  })
}
// 改变创客状态
export function changeStatus(data) {
  return request({
    url: '/maker/change/status',
    method: 'put',
    data: data
  })
}

// 修改用户
export function updateMaker(data) {
  return request({
    url: '/maker/update',
    method: 'put',
    data: data
  })
}

export function assetList(query) {
  return request({
    url: '/maker/asset/list',
    method: 'get',
    params: query
  })
}

export function inviteList(query) {
  return request({
    url: '/maker/invite/list',
    method: 'get',
    params: query
  })
}

// 查询创客列表
export function statistics() {
  return request({
    url: '/maker/statistics',
    method: 'get'
  });
}

export function graphic(data) {
  console.log(data);
  return request({
    url: '/maker/graphic',
    method: 'post',
    data: data
  });
}

export function graphicArea(data) {
  console.log(data);
  return request({
    url: '/maker/graphic/area',
    method: 'post',
    data: data
  });
}

export function findUserList(query) {
  return request({
    url: '/maker/find/user',
    method: 'get',
    params: query
  })
}

export function addMaker(data) {
  return request({
    url: '/maker/add',
    method: 'post',
    data: data
  })
}

export function offlineUserList(query) {
  return request({
    url: '/maker/offline/user/list',
    method: 'get',
    params: query
  })
}









